home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / tifreadr.sit / Tiff Window DEMO / SetUpMenus.c < prev    next >
C/C++ Source or Header  |  1990-01-26  |  586b  |  20 lines

  1. #include "my color.h"
  2.  
  3. SetUpMenus()
  4.     /* set up menus and menu bar */  
  5. {
  6.     short i;
  7.     
  8.     myMenus[appleM] = GetMenu(appleID); /*read Apple menu*/
  9.     AddResMenu(myMenus[appleM],(ResType)'DRVR');  /*add desk accessory names*/
  10.     myMenus[fileM] = GetMenu(fileID);   /*read file menu */
  11.     myMenus[editM] = GetMenu(editID);   /*read Edit menu */
  12.     myMenus[colorM] = GetMenu(colorID);   /*read color chooser menu */
  13.     myMenus[CcolorM] = GetMenu(controlID);
  14.  
  15.     for (i=0;i<menuCount;++i) 
  16.         InsertMenu(myMenus[i],0);  /*install menus in menu bar */
  17.     DrawMenuBar();    /* and draw menu bar*/
  18. } /*SetUpMenus*/
  19.  
  20.